
package com.bei_en.teacher.admin.persistence.dao.advertising;

import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import com.bei_en.teacher.admin.model.advertising.bean.Advertising;
import com.bei_en.teacher.admin.model.advertising.condition.AdvertisingCondition;
import com.bei_en.teacher.admin.persistence.BaseDao;

/**
 * 
 * @author Guocg
 * @date 2016-11-13 9:55:53
 */
@Repository
public interface AdvertisingDao extends BaseDao<Advertising, Integer> {

    Integer findNumberByCondition(AdvertisingCondition vo);

    List<Advertising> findPageBreakByCondition(AdvertisingCondition vo, RowBounds rb);

    /**
     * 返回上次插入的id，用于merge
     * @return
     */
    Integer findLastInsertedId();
}
